/* CodeBuilder代码生成器 创建时间：2011-12-03 19:00:10 */
using System;
using System.Data;
using System.Collections.Generic;
using Maticsoft.Common;

namespace BLL
{
	/// <summary>
	/// 业务逻辑类：V_AdminLog 
	/// </summary>
	public partial class V_AdminLog
	{
		private readonly DAL.V_AdminLog dal=new DAL.V_AdminLog();
		public V_AdminLog()
		{}
		#region  Method

		/// <summary>
		/// 是否存在该条件记录
		/// </summary>
        /// <param name="strWhere">Where条件</param>
        /// <returns>bool:True/False</returns>
		public bool Exists(string strWhere)
		{
			return dal.Exists(strWhere);
		}

        /// <summary>
        /// 获取数量
        /// </summary>
        /// <returns>总记录数</returns>
        public int Count()
        { 
            return Count(null);
        }

        /// <summary>
        /// 根据条件获取数量
        /// </summary>
        /// <param name="strWhere">Where条件</param>
        /// <returns>记录数</returns>
        public int Count(string strWhere)
        { 
            return dal.Count(strWhere);
        }

        /// <summary>
		/// 得到一个对象实体
		/// </summary>
        /// <param name="strWhere">Where条件</param>
		public Model.V_AdminLog GetModelBystrWhere(string strWhere)
		{
            return dal.GetModelBystrWhere(strWhere);
        }

		/// <summary>
		/// 获得数据列表
		/// </summary>
        /// <param name="strWhere">Where条件</param>
        /// <returns>数据集</returns>
		public List<Model.V_AdminLog> GetList(string strWhere)
		{
			return GetList(0,strWhere,null);
		}

		/// <summary>
		/// 获得前几行数据
		/// </summary>
        /// <param name="Top">条数</param>
        /// <param name="strWhere">Where条件</param>
        /// <param name="filedOrder">filedOrder排序</param>
        /// <returns>数据集</returns>
		public List<Model.V_AdminLog> GetList(int Top,string strWhere,string filedOrder)
		{
			return dal.GetList(Top,strWhere,filedOrder);
		}

		/// <summary>
		/// 获得数据列表
		/// </summary>
		public List<Model.V_AdminLog> GetAllList()
		{
			return GetList(0,null,null);
		}

		/// <summary>
		/// 分页获取数据列表
		/// </summary>
		public Model.PageData<Model.V_AdminLog> GetList(int PageSize,int PageIndex,string strWhere,string sort)
		{
			return dal.GetList(PageSize,PageIndex,strWhere,sort);
		}

		#endregion  Method
	}
}

